<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8"/>
    <title>渠道</title>
    <meta name="description" content="overview & stats"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link href="static/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="static/css/bootstrap-responsive.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="static/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="static/css/ace.min.css"/>
    <link rel="stylesheet" href="static/css/ace-responsive.min.css"/>
    <link rel="stylesheet" href="static/css/ace-skins.min.css"/>
    <script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
</head>

<script type="text/javascript">
    $(function () {
        top.hangge();
    });

</script>

<body>
<form action="channel/edit" name="menuForm" id="menuForm" method="post">
    <input type="hidden" name="id" id="id" value="${channel.id}"/>
    <div id="zhongxin" class="zhongxin-cla">
        <table>
            <tr>
                <td>
                    <font color='red'>*</font>
                    <span>渠道名称：</span>
                    <input type="text" name="name" id="name" placeholder="渠道名称" value="${channel.name}" title="名称"
                           readonly/>
                </td>
            </tr>
            <tr>
                <td>
                    <font color='red'>*</font>
                    <span>登录账号：</span>
                    <input type="text" name="account" id="account" placeholder="登录账号" value="${channel.account}"
                           title="账号" readonly/>
                </td>
            </tr>
            <tr>
                <td>
                    <font color='red'>*</font>
                    <span>登录密码：</span>
                    <input type="password" name="password" id="password" placeholder="登录密码" value="${channel.password}"
                           title="密码" readonly/>
                </td>
            </tr>
            <tr>
                <td style="padding-bottom: 10px;">
                    <font color='red' style="float: left">*</font>
                    <span style="float:left;">账号状态：    </span>
                    <div style="float: left">
                        <label style="float:left;padding-left: 32px;">
                            <input name="status" type="radio" value="1"
                                   <c:if test="${channel.status == 1}">checked</c:if> readonly>
                            <span class="lbl">启用</span>
                        </label>
                        <label style="float:left;padding-left: 32px;">
                            <input name="status" type="radio" value="0"
                                   <c:if test="${channel.status == 0}">checked</c:if> readonly>
                            <span class="lbl">禁用</span>
                        </label>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="padding-bottom: 10px;">
                    <font color='red' style="float: left">*</font>
                    <span style="float: left">视频(转移时长)： </span>
                    <div style="float: left">
                        <label style="float:left;padding-left: 32px;">
                            <input name="shiftLimit" type="radio" value="1"
                                   <c:if test="${channel.shiftLimit==1}">checked</c:if> readonly>
                            <span class="lbl">开启</span>
                        </label>
                        <label style="float:left;padding-left: 32px;">
                            <input name="shiftLimit" type="radio" value="0"
                                   <c:if test="${channel.shiftLimit==0}">checked</c:if> readonly>
                            <span class="lbl">禁用</span>
                        </label>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="padding-bottom: 10px;">
                    <font color='red' style="float: left">*</font>
                    <span style="float: left">解绑功能：    </span>
                    <div style="float: left">
                        <label style="float:left;padding-left: 32px;">
                            <input name="unbundling" type="radio" value="1"
                                   <c:if test="${channel.unbundling==1}">checked</c:if> readonly>
                            <span class="lbl">开启</span>
                        </label>
                        <label style="float:left;padding-left: 32px;">
                            <input name="unbundling" type="radio" value="0"
                                   <c:if test="${channel.unbundling==0}">checked</c:if> readonly>
                            <span class="lbl">禁用</span>
                        </label>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="padding-bottom: 10px;">
                    <font color='red' style="float: left">*</font>
                    <span style="float: left">查看设备位置： </span>
                    <div style="float: left">
                        <label style="float:left;padding-left: 32px;">
                            <input name="canCheckPosition" type="radio" value="1"
                                   <c:if test="${channel.canCheckPosition==1}">checked</c:if> readonly>
                            <span class="lbl">开启</span>
                        </label>
                        <label style="float:left;padding-left: 32px;">
                            <input name="canCheckPosition" type="radio" value="0"
                                   <c:if test="${channel.canCheckPosition==0}">checked</c:if> readonly>
                            <span class="lbl">禁用</span>
                        </label>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="padding-bottom: 10px;">
                    <font color='red' style="float: left">*</font>
                    <span style="float: left">查看设备激活状况：</span>
                    <div style="float: left">
                        <label style="float:left;padding-left: 32px;">
                            <input name="checkDActinoStatus" type="radio" value="1"
                                   <c:if test="${channel.checkDActinoStatus==1}">checked</c:if> readonly>
                            <span class="lbl">开启</span>
                        </label>
                        <label style="float:left;padding-left: 32px;">
                            <input name="checkDActinoStatus" type="radio" value="0"
                                   <c:if test="${channel.checkDActinoStatus==0}">checked</c:if> readonly>
                            <span class="lbl">禁用</span>
                        </label>
                    </div>
                </td>
            </tr>

            <tr>
                <td style="text-align: center; padding-top: 10px;">
                    <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">关闭</a>
                </td>
            </tr>
        </table>
    </div>
    <div id="zhongxin2" class="center" style="display:none">
        <br/><br/><br/><img src="static/images/jiazai.gif"/><br/>
        <h4 class="lighter block green"></h4>
    </div>
</form>
</body>
</html>